Repository navigation
crypto: webcpp::crypto 0.1, its third-party code, its build and its rulebook - #20
Merged
Merged
Conversation
added 30 commits
November 15, 2026 11:09
…the source-built OpenSSL
…ormed outcome and a partial line
…NG-GUIDELINES.md: OpenSSL targets and alias name
…, and refuse a leftover option
…book names the source-built OpenSSL
…est of the tools (Task 10)
…ler and a static library
…pins a line with a machine path
…a line with a machine path
… file with webcpp::crypto's canary
…y and its tests, and cases for both refusals
… drops
The rule compiled with -verify-ignore-unexpected=error, which tolerates the
cascade of errors after a header's #error but also hid the errors -verify
reports on a directive it cannot read: a header it names that cannot be
located, a {{...}} whose }} is not on its line. -verify then dropped the
directive and the test passed on nothing.
The test is now a type of its own (tools/compile_diagnostic): the object's
compile writes its compilation database entry (-MJ), and check.py runs that
exact command again with clang's diagnostic log, which records every
diagnostic, those -verify ignores included, and fails on any error located
in a directive. The cascade is still tolerated.
Also wraps the same-program usage line of webcpp.jam's header comment,
which was over the Jam comment width.
added 28 commits
November 16, 2026 02:40
… the library and its own tests
…//secp256k1, for the lax DER decoding of ECDSA signatures
…mscripten refusals and the canaries as contains: lines, openssl_linked's tag, and encrypt_and_sign waiting for the BearSSL backend
…k1 namespaces and their headers
…bcpp::crypto no longer calls
…same-as: copies, every Jamfile and outcome tagged for the page; doc: crypto among the new libraries of 0.1.0
Chapter 15 gains crypto's decisions as version 0.1 built them, and chapter 17 keeps only the later work; chapter 5 names crypto under rule 5, chapter 16 lists crypto's later work, and chapter 19 records its limits against rules 11 and 12. AGENTS.md lists the library, the new submodules, the lane c-suites and the MSVC message cases; README.md gains its row.
…Emscripten without a backend, a missing /third_party// name and the BIPs' pin; third_party: BearSSL's entropy defines keyed on Windows alone
…ithout [[nodiscard]] in a library that asks for it in its meta/lint.json; third_party: the seeder comment rewrapped to 80 columns
…n their parts, links keep code's underscores visible, references leave detail macros out; the rulebook: crypto's outcome directive not-contains:, the c-suites limit on MSVC, the nodiscard results rule, chapter 10 sorted
…r anchor:, which shows no text: crypto's [[nodiscard]] was missing from its line
…em whole, and stacks only after that; a matrix of eight columns or more scrolls in its box rather than stack; the measure runs again on load and once the fonts are ready; the roles keep and key-column; the table of contents breaks a name after its ::
… they break at a _ or a -, and a key-column table stacks rather than break them so; code in a table wraps only where postprocess.mjs marks a break; a matrix's first column, and a key-column table's, keep their hyphenated keys whole, a matrix's 9em wide
…ts directory between either separator, as b2 spells a path on Windows with backslashes, where it compared nothing and failed every pair
…s beside the program is the program's, not a failure outside every test: a link-fail test's expected failure on MSVC
The library's repository is webcpporg/crypto. The third-party targets compile its canaries, so the submodule lands with them in one pull request. The recorded commit becomes the library's main by a fast-forward once this merges.
…e counting header's misc-definitions-in-headers exception that Linux's clang-tidy asks
…scope, the head's col and the body's row, as html-validate's wcag/h63 asks of webcpp::crypto's namespace tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The superproject's half of webcpp::crypto version 0.1 (proposal genesis, plan Tasks 25 and 30
in one pull request, as version 0.1 joins increments 1 and 2): the third-party submodules crypto
builds from source, their targets under
/third_party, the tools and lint rules crypto'sevidence needs, the rulebook, and the submodule
libs/cryptoat the head ofwebcpporg/crypto's pull request. It also moves
libs/asioandlibs/trysteroto the commits oftheir own pull requests.
The branch is rebased onto #19's head (tools/release-link-followups, a60e6fe), as if #19 had
merged: until it does, this pull request shows #19's three commits too. Merge order (the
owner's): #19, then webcpporg/asio's pull request (with a merge commit: its base is the asio
commit #19 records, which asio's
mainmerged in #4), then this one; then webcpporg/crypto'sand webcpporg/trystero's are re-run against the new
mainand merged by fast-forward, so thatmainrecords commits of theirmain. hash/v0.1 and nodiscard/v0.1 follow; #17 rebases ontothem. The third-party targets compile
libs/crypto/src/canary_*.c, so they cannot land withoutthe submodule.
What changes
third_party/libs/bearssl(webcpporg/bearssl),wycheproof(C2SP, shallow),secp256k1(v0.8.0),
bips(shallow, BIP340 and BIP341 vectors),bitcoin(shallow, ctaes as BitcoinCore v31.1 ships it);
libs/crypto(../crypto.git)./third_partybeside/webcpp/third_party; BearSSL,ctaes and libsecp256k1 built file by file with crypto's canary (libsecp256k1's tables by
target, BearSSL's entropy defines keyed on the target OS,
/OPT:REFquoted); oneconfiguration for each library and its own tests.
webcpp.same-program(a library named and not called adds no byte);tools/test/crypto_jamfiles_test.pywith the user's Jamfiles as fixtures and its outcomeformat (
contains:,not-contains:,line:,same-as:);openssl_one_copy_test.py;webcpp.compile-diagnosticfails on a directive clang's-verifydrops (and asio's threetests that it caught are fixed in webcpporg/asio's pull request); libsecp256k1 no longer an
external library in tools/ci.
canary pins(each canary's commit against its submodule),entropy sources(no weaker source in a header that reads entropy),
nodiscard results(opt-in per librarythrough meta/lint.json; crypto opts in).
their parts, links over code keep underscores visible, references leave detail macros out;
the changelog rule refuses inline anchors.
/third_party//secp256k1instead of its own build.keeps only crypto's later work, chapters 5, 9, 10, 16 and 19 updated; AGENTS.md (library
table, layout, the
c-suiteslane, MSVC message cases); README.md's crypto row;doc/releases/0.1.0.adoc.
Verification
Local, from scratch (
b2 -a), at the final commits of this branch and the library:c-suiteson native, wasip2, wasip3, Emscripten; trystero native 52 and Emscripten 59;must-fail message case fails for the right reason; the same-program and report findings of its
first run (backslash paths,
.pdboutputs) are fixed. MSVC 14.3 verified locally on the finalcombined tree (nodiscard/v0.1 c510459, which holds this branch): 347 of 355 rows pass, the 8 left
being the known Wine artifact (no-exceptions units that include Boost.JSON, which the Windows CI
compiles),
summarize.sh: "green but for the known Wine failures"; 14.5 is left to the WindowsCI, since both versions gave identical results on every earlier local run;
b2 -a docwith every library's rendered check (14 pages, 390 to 1440 px, no sidewaysscroll);
matrix.py planandown-lanesfor crypto (ten lanes,external: false;c-suiteson four targets);
tools/**/*_test.py(61 with hash's), the lintlint: clean;crypto_jamfiles_test.pywithin Task 10's 30 minutes on every target (71 to 324 s).Reviews: per-task spec and quality reviews, a final whole-branch review by three reviewers
(API, tests and build, documentation), one fix wave, a scoped re-review that approved it, and a
polish round on the rendered tables.
Known limits
themselves fail on msvc-14.3 and msvc-14.5 on every push (chapter 19).
no-asmon MSVC, wasip2 and wasip3; crypto has no size tableuntil its sizes lane.
macOS.
Follow-ups
NIST CAVP) and trystero's code migration onto crypto.
[[nodiscard]]on asio, beast, cobalt and trystero (55 functions) and their opting into therule: nodiscard/v0.1, stacked on hash/v0.1, with one pull request per library.
🤖 Generated with Claude Code